import request from '@/utils/request'

// 查询实时比赛信息列表
export function listRealTimeMatch(query) {
  return request({
    url: '/match/realTimeMatch/list',
    method: 'get',
    params: query
  })
}

// 查询实时比赛信息详细
export function getRealTimeMatch(id,maxFlag) {
  return request({
    url: '/match/realTimeMatch/' + id,
    method: 'get',
    params: {
      maxFlag: maxFlag
    }
  })
}

export function getRealTimeMatch2(id) {
  return request({
    url: '/match/realTimeMatch/realTime/' + id,
    method: 'get'
  })
}

// 新增实时比赛信息
export function addRealTimeMatch(data) {
  return request({
    url: '/match/realTimeMatch',
    method: 'post',
    data: data
  })
}

// 修改实时比赛信息
export function updateRealTimeMatch(data) {
  return request({
    url: '/match/realTimeMatch',
    method: 'put',
    data: data
  })
}

// 删除实时比赛信息
export function delRealTimeMatch(id) {
  return request({
    url: '/match/realTimeMatch/' + id,
    method: 'delete'
  })
}
